import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Antd from 'ant-design-vue';
import './assets/style/reset.css'
import VueParticles from 'vue-particles'
import 'ant-design-vue/dist/antd.css';
import "nprogress/nprogress.css"

//v-limit 判断dom中显示字体数量，一旦超出，后方加个'...'号
Vue.directive('limit', (el,data)=>{
  let str = el.innerText;
  if(str.length > data.value){
    el.innerText = str.substring(0,data.value) + '...';
  }
})

Vue.config.productionTip = false
Vue.use(Antd);
Vue.use(VueParticles)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
